const { booleanToString, stringToBoolean } = require("@/util/type-converter");
const PROPS = Object.freeze({
  dictionaryType: "type",
  identifier: "code",
  status: "enabled",
  createdBy: "createUser",
  createdAt: "createTime",
});
module.exports = {
  LABELS: Object.freeze({
    dictionaryType: "字典类型",
    identifier: "标识符",
    status: "状态",
    createdBy: "添加人",
    createdAt: "添加时间",
  }),
  PROPS,
  OPTION_KEYS: Object.freeze({
    status: "dict_type_status",
  }),
  INCOMPATIBLE_FIELD: {
    [PROPS.status]: [booleanToString, stringToBoolean],
  },
};
